<?php
namespace Home\Model;
use Think\Model\RelationModel;
class OrderThroughModel extends RelationModel
{
    protected $_link = array(

        //代理表
        'order'=>array(
            'mapping_type' => self::BELONGS_TO,
            'class_name' => 'Order',
            'foreign_key'   => 'order_id',
            'mapping_fields' => 'status',
            'as_fields' => 'status',
        )

    );
}